{{include file="admin/intop.html"}}
<form id="form1" name="form1" method="post" action="admin.php?ctl=sysmenu&act={{$smarty.request.act}}">
<input type="hidden" name="id" value="{{$smarty.request.id}}">
<input type="hidden" name="actname" value="save">
<table width="100%" border="0" cellspacing="1" cellpadding="0" class="table_list">
    <tr class="mouse">
    <td class="lr"><font color="red">*</font> 名称</td>
    <td class="lf"><input name="title" type="text" maxlength="20" id="title" value="{{$menuItem.TITLE}}" style="width:200px;" /></td>
    </tr>
<!--     <tr class="mouse">
    <td class="lr"><font color="red">*</font> 编码</td>
    <td class="lf"><input name="code" type="text" maxlength="20" id="code" value="{{$menuItem.CODE}}" style="width:200px;" /></td>
    </tr> -->
    <tr class="mouse"   {{if isset($menuItem.PARENT_ID) && $menuItem.PARENT_ID==0}}style="display:none"{{/if}}>
    <td class="lr"><font color="red">*</font> 上级</td>
    <td class="lf">
        <select  name="parent_id">
            <option value="0">(顶级)</option>
            {{foreach from=$mainMenus item=li}}
            <option value="{{$li.ID}}" {{if $menuItem.PARENT_ID==$li.ID}}selected="selected"{{/if}}>{{$li.TITLE}}</option>
            {{/foreach}}
        </select>
    </td>
    </tr>
     <tr class="mouse" {{if isset($menuItem.PARENT_ID) && $menuItem.PARENT_ID==0}}style="display:none"{{/if}}>
    <td class="lr"><font color="red">*</font> 链接</td>
    <td class="lf"><input name="url" type="text" id="url" value="{{$menuItem.URL}}" style="width:200px;" />顶级时不用填</td>
    </tr>
     <tr class="mouse">
    <td class="lr"><font color="red">*</font> 排序</td>
    <td class="lf"><input name="order_num" type="text" maxlength="20" id="order_num" value="{{$menuItem.ORDER_NUM}}" style="width:200px;" /></td>
    </tr>
    <tr class="mouse">
    <td class="lr"><font color="red">*</font> 状态</td>
    <td class="lf">
        <input type="radio" name="state" id="state1" value="1"{{if $menuItem.STATE=="" || $menuItem.STATE==1}} checked="checked"{{/if}}/><label for="state1">启用</label>
    	<input type="radio" name="state" id="state2" value="2"{{if $menuItem.STATE==2}} checked="checked"{{/if}}/><label for="state2">禁用</label></td>
    </tr>
    <tr class="bottom">
    <td colspan="2" align="center"><input type="submit" name="btnSubmit" id="btnSubmit" value="确认保存" /></td>
    </tr>
</table>
</form>
{{include file="admin/infoot.html"}}
